# Use at least CMake 3.3
cmake_minimum_required (VERSION 3.3.0)
cmake_policy(VERSION 3.2.2)
cmake_policy(SET CMP0054 NEW)

# Set up the project
project (leetcode)

# C++11 编译
#set(CMAKE_CXX_STANDARD 11)

#option(ADVANCED_OPTION "An advanced option that should be hidden" OFF)
# 标记之后将不会在配置界面显示
#mark_as_advanced(ADVANCED_OPTION)
# 设置Google Test源码路径
set(GTEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/googletest)
set(GTEST_SRC_DIR ${GTEST_DIR}/googletest)
set(GTEST_INCLUDE_DIR ${GTEST_SRC_DIR})

# 添加Google Test作为子目录
add_subdirectory(${GTEST_DIR})



#include_directories(leetcode-cpp)
add_subdirectory(example)
add_subdirectory(leetcode-cpp)














